﻿using IdentityService.Domain.Aggregates.UserAccountAggregate;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace IdentityService.Infrastructure.EntitiesConfig
{
    public class UserInfoConfig : IEntityTypeConfiguration<UserInfo>
    {
        public void Configure(EntityTypeBuilder<UserInfo> builder)
        {
            builder.HasKey(it => it.UserAccountId);
            builder.Property(it => it.UserAccountId).ValueGeneratedNever();
        }
    }
}
